package com.goldsign.pay.server.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**启动类添加@EnableConfigServer，激活对配置中心的支持*/
/**启动类添加@EnableDiscoveryClient，将配置服务注册到中心*/
@SpringBootApplication
@EnableDiscoveryClient
@EnableConfigServer
public class ConfigurationServer {
    public static void main(String[] args) {
        SpringApplication.run(ConfigurationServer.class, args);
    }
}